<div>
	<form action="/new/codebook/?pid={{ project.id }}" method="POST" enctype="multipart/form-data" onsubmit='$(this).find(".status").removeClass("hidden");return true;'>
		<div class='formfieldcontainer'>
			<label class="fieldlabel" style="width:140px;">Codebook Name :</label>
			<input type='text' name='name' required="required" />
		</div>
	
		<div class='formfieldcontainer'>
			<label class="fieldlabel" style="width:140px;">Upload Codebook XML :</label>
			<input type="file" name="codebookfile" id="NewCorpus" required="required" />
		</div>
		
		<div class='formfieldcontainer'>
			<label class='fieldlabel' style="width:140px;">Privacy Settings : </label>
                        <input type="radio" name="permission" value="0" checked>Private
                        <input type="radio" name="permission" value="1">Read to all
                        <input type="radio" name="permission" value="2">Open Source				
		</div>

		<div class='formfieldcontainer'>
			<input type="submit" value="Upload" class="button-base button-blue button-small" style="margin-left:50px;" />
		</div>
		<div class="hidden status highlight ui-state-highlight" style='margin-top:5px;'>
                        Uploading... Do not close the window in the middle of the uploading
                </div>
	</form>
</div>
